package com.central.user.model;

import lombok.Data;

/**
 * 玩家基本信息:
 * 用户统计端模糊查询
 */
@Data
public class PlayerBaseInfo extends Player {

    /**玩家ID*/
//    private long playerId;

    /**昵称*/
    private String nickName;

    /**手机号码*/
    private String phone;

    /**顽疾类型*/
    private String type;

    public void setType(String phone) {
        if (phone != null){
            this.type = "手机用户";
        }else {
            this.type = "游客用户";
        }
    }

    @Override
    public String toString() {
        super.toString();
        return "PlayerBaseInfo{" + "nickName='" + nickName + '\'' + ", phone='" + phone + '\'' + ", type='" + type + '\'' + '}';
    }
}
